package org.scc.model;
/**
 * 文章类型
 * 一个文章只有一个类型
 * @author rzpeng
 *
 */
public class ArticleType {
	private int id;
	private String name;
	private int sort;
	/**
	 * 首页是否展示
	 */
	private boolean showIndex;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public boolean isShowIndex() {
		return showIndex;
	}
	public void setShowIndex(boolean showIndex) {
		this.showIndex = showIndex;
	}
	
	public String showIndexText(){
		if(showIndex) return "是";
		else return "否";
	}
}
